package com.fx.device.repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fx.device.vo.activit.Formdata;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;


public interface ActivitFormdataRepository extends BaseMapper<Formdata> {


    List<HashMap<String, Object>> selectFormData(@Param("processInstanceId") String processInstanceId);

    //写入表单
//    @Insert("<script> insert into formdata (procDefId,procInstId,formKey,controlId,controlValue)" +
//            "    values" +
//            "    <foreach collection=\"maps\" item=\"formData\" index=\"index\" separator=\",\">" +
//            "      (#{formData.procDefId,jdbcType=VARCHAR},#{formData.procInstId,jdbcType=VARCHAR}," +
//            "      #{formData.formKey,jdbcType=VARCHAR}, #{formData.controlId,jdbcType=VARCHAR},#{formData.controlValue,jdbcType=VARCHAR})" +
//            "    </foreach>  </script>")
    int insertFormData(@Param("maps") List<HashMap<String, Object>> maps);



}
